/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

/**
 *
 * @author Driv
 */
public class EventoLlegadaCliente extends Evento{

    public EventoLlegadaCliente(double tiempo){
        setTiempo(tiempo);
    }

    @Override
    public void ejecutar(Controller c) {
        c.agregarCliente();
        if(c.servidoresLibres()){
            c.atenderCliente();
        }
        c.nuevoEventoLlegadaCliente();
    }

    @Override
    public String getNombre() {
        return "Llegada Cliente";
    }

}
